package fr.charlott.business.dto;

import java.io.Serializable;
import java.util.Date;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;

import org.hibernate.validator.constraints.Range;

public class ReunionDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;
	
	@Past
	@NotNull
	private Date date;
	
	@NotNull
	@Range
	private double chiffreAffaire;
	
	@NotNull
	@Valid
	private HotesseDTO hotesse;
	
	// constructeurs
	public ReunionDTO() {
		super();
		this.hotesse = new HotesseDTO();
	}

	public ReunionDTO(HotesseDTO hotesse) {
		super();
		this.hotesse = hotesse;
	}
	
	public ReunionDTO(Date date, double chiffreAffaire) {
		super();
		this.date = date;
		this.chiffreAffaire = chiffreAffaire;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public HotesseDTO getHotesse() {
		return hotesse;
	}

	public void setHotesse(HotesseDTO hotesse) {
		this.hotesse = hotesse;
	}

	public double getChiffreAffaire() {
		return chiffreAffaire;
	}

	public void setChiffreAffaire(double chiffreAffaire) {
		this.chiffreAffaire = chiffreAffaire;
	}
}
